package com.fcscs.cservice.ws.client.reservationservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.reservationservice.AdvanceFindReservationsRequest;
import com.fcscs.cservice.ws.schema.reservationservice.AdvanceFindReservationsResponse;

public class AdvanceFindReservationsClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(AdvanceFindReservationsClient.class);

	public AdvanceFindReservationsResponse findResv(AdvanceFindReservationsRequest req) {
		AdvanceFindReservationsResponse resp = (AdvanceFindReservationsResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getReservationViewList().size());
		return resp;
	}

}
